<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.yaodian100.crm.workflow.entity.WorkFlowNode" %>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<c-rt:if test="${!empty param.id}">
<c-rt:set var="bulletin" value="${pu:get('com.yaodian100.crm.cs.entity.Bulletin', pu:toLong(param.id)) }"/>
</c-rt:if>
<form name="updateBulletinForm" method="post">
<table class="tb-data" width="100%">

<tr>

<th>id</th><td>${bulletin.id }<input type="hidden" name="id" value="${bulletin.id }"/></td>
</tr>
<tr>
<th>障碍名称</th><td><input type="text" name="name" value="${bulletin.name }"/></td></tr>
<tr>

<th>已知状态</th><td>
<select name="knownStatus">
	<option value="0" <c-rt:if test="${bulletin.knownStatus=='0' }">selected="selected"</c-rt:if>>初始</option>
	<option value="1" <c-rt:if test="${bulletin.knownStatus=='1' }">selected="selected"</c-rt:if>>处理中</option>
	<option value="2" <c-rt:if test="${bulletin.knownStatus=='2' }">selected="selected"</c-rt:if>>已排除</option>
</select>
</td>
</tr>
<tr>
<th>种类</th><td><input type="text" name="type" value="${bulletin.type }"/></td>
</tr>
<tr>
<th>障碍发生日期<br/>(yyyy/MM/dd HH:mm)</th><td><input type="text" name="occurDate" value="<fmt-rt:formatDate value="${bulletin.occurDate }" pattern="yyyy/MM/dd HH:mm"/>"/>
</td></tr>
<tr>
<th>障碍通报日期<br/>(yyyy/MM/dd HH:mm)</th><td><input type="text" name="announceDate" value="<fmt-rt:formatDate value="${bulletin.announceDate }" pattern="yyyy/MM/dd HH:mm"/>"/>
</td></tr>

<tr>
<th>预计排除日期<br/>(yyyy/MM/dd HH:mm)</th><td><input type="text" name="expectFixDate" value="<fmt-rt:formatDate value="${bulletin.expectFixDate }" pattern="yyyy/MM/dd HH:mm"/>"/>
</td></tr>
<tr>
<th>障碍排除日期<br/>(yyyy/MM/dd HH:mm)</th><td><input type="text" name="solvedDate" value="<fmt-rt:formatDate value="${bulletin.solvedDate }" pattern="yyyy/MM/dd HH:mm"/>"/>
</td></tr>
<tr>
<th>障碍发生原因</th><td><input type="text" name="reason" value="${bulletin.reason }"/>
</td></tr>
<tr>
<th>受影响服务</th><td><input type="text" name="effectedService" value="${bulletin.effectedService }"/>
</td></tr>
<tr>
<th>障碍实际原因</th><td><input type="text" name="realReason" value="${bulletin.realReason }"/>
</td></tr>
<tr>
<th>影响范围</th><td><input type="text" name="effectScope" value="${bulletin.effectScope }"/>
</td></tr>
<tr>
<th>已知障碍说明</th><td><input type="text" name="knownDescription" value="${bulletin.knownDescription }"/>
</td></tr>
<tr>
<th></th>
<td>
<input type="button" value="送出" id="submit_button"/>
<input type="reset" value="重置"/>
</td>
</tr>
</table>
</form>
<script>
$(function(){
	$('#submit_button').click(function(){
		doAR('<%=application.getContextPath() %>/cs/bulletin/update.do','dialog', 'updateBulletinForm', function(){
			doAR('<%=application.getContextPath()%>/cs/bulletin/page.do?iamlazy=list', 'main');
		});
	});
});
</script>